package com.ljy.tkmodel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 答题记录
 * </p>
 *
 * @author testjava
 * @since 2022-01-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ljy_zhuanshuo_answer_user_0")
@ApiModel(value="LjyZhuanshuoAnswerUser0对象", description="答题记录")
public class LjyZhuanshuoAnswerUser0 implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回答问的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "问题id")
    private Integer questionId;

    @ApiModelProperty(value = "章节id")
    private Integer chapterId;

    @ApiModelProperty(value = "用户表id")
    private Integer userId;

    @ApiModelProperty(value = "答题选项")
    private String answer;

    @ApiModelProperty(value = "是否答对")
    private Boolean isRight;

    @ApiModelProperty(value = "正确数")
    private Integer rightCount;

    @ApiModelProperty(value = "错误数")
    private Integer wrongCount;

    @ApiModelProperty(value = "是否清除")
    private Boolean status;

    @ApiModelProperty(value = "答题时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Integer ctime;

    @ApiModelProperty(value = "章节父id")
    private Integer chapterParentId;

    @ApiModelProperty(value = "乱序章节父id")
    private Integer chapterDisorderParentId;

    @ApiModelProperty(value = "乱序章节id")
    private Integer chapterDisorderId;

    @ApiModelProperty(value = "年份章节父id")
    private Integer yearParentId;

    @ApiModelProperty(value = "年份id")
    private Integer yearId;


}
